﻿using UnityEngine;
using System.Collections;

public class LadderHandler : MonoBehaviour {

	void OnTriggerEnter2D(Collider2D target){
		if(target.gameObject.tag.Equals("Player")){
			target.gameObject.GetComponent<PlayerController>().CanMoveVertical = true;
	}
}

	void OnTriggerExit2D(Collider2D target){
		if(target.gameObject.tag.Equals("Player")){
			target.gameObject.GetComponent<PlayerController>().CanMoveVertical = false;	
			
	}
}

}